
import 'package:flutter/material.dart';
import 'package:xsdk_flutter/xsdk/xsdk_flutter_package.dart';
import 'package:xsdk_flutter_plugin/xsdk_flutter_plugin.dart';
//import 'package:mobile_scanner/mobile_scanner.dart';



/*
扫描条码二维码
 */
class ScanQrCodeStatePage extends XPageScan2State{

  ScanQrCodeStatePage();

  @override
  Widget getItemWidgetInStack() {
    return XWidgetUtils.getLayoutPadding(padding: XWidgetUtils.getEdgeInsets(0, 0, 0, 0));
  }

  @override
  void onStart() {
  }

  @override
  void scanResultCallback(String result) {
    //XLogUtils.printLog('---result=$result');
    XFlutterUtils.finishPage(context,result:result);
  }


}